﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace FaultBackService
{
    public partial class FaultBackService : ServiceBase
    {
        public FaultBackService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            //开始运行服务
            ServiceHelper.Start();
        }

        protected override void OnStop()
        {
            
        }


        /// <summary>
        /// 调试用
        /// </summary>
        /// <param name="args"></param>
        public void Start(string[] args)
        {
            this.OnStart(args);
        }
        public void Stop2()
        {
            this.OnStop();
        }

    }
}
